package com.nowcoder.community;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
@MapperScan("com.nowcoder.community.dao")
public class CommunityApplication {

//	@PostConstruct
//	public void init(){
//		// 解决netty启动冲突问题
//		// see:NettyRuntime.setAvailableProcessors
//		// https://www.bilibili.com/video/BV1qV411z7K2?p=41
//		System.setProperty("es.set.netty.runtime.available.processors", "false");
//	}

	public static void main(String[] args) {
		SpringApplication.run(CommunityApplication.class, args);
	}

}
